import React, { Component } from 'react';
import { List, InputItem } from 'antd-mobile';
import { createForm } from 'rc-form';


class Input extends Component {
	render() {
		const { getFieldProps } = this.props.form;
		return (
		  <div>
			<List>
			  <InputItem
				{...getFieldProps('phone')}
				type="phone"
				placeholder="186 1234 1234"
			  >手机号码</InputItem>
			  <InputItem
				{...getFieldProps('password')}
				type="password"
				placeholder="****"
			  >密码</InputItem>
			</List>
        </div>
    );
  }
}

const InputWrapper = createForm()(Input);

export default InputWrapper;